import {http} from "@/interceptor/luch-request/index.js"


// 创建
export const save = (data) => {
    return http.post("api/admin/faultRepair/v1/save", data,{
	header:{
			"content-type": "application/json"
		}
	});	
}
// 我创建的
export const listMyCreateTable = (data) => {
	return http.get("api/admin/faultRepair/v1/listMyCreateTable", {
		data: data
	});
}
// 编辑
export const update = (data) => {
    return http.put("api/admin/faultRepair/v1/update", data,{
	header:{
			"content-type": "application/json"
		}
	});	
}

// 列表
export const listTable = (data) => {
	return http.get("api/admin/faultRepair/v1/listTable", {
		data: data
	});
}

// 删除
 export const deleteFaultRepair = (id) => {
  	return http.delete("api/admin/faultRepair/v1/delete/"+id, {
  		header:{
  			"content-type": "application/x-www-form-urlencoded"
  		}
  	});
 }
 // 详情
  export const faultRepairInfo = (id) => {
   	return http.get("api/admin/faultRepair/v1/info/"+id, {
   		header:{
   			"content-type": "application/x-www-form-urlencoded"
   		}
   	});
  }
